export class Person {
  name: string;

  constructor(name: string) {
    this.name = name;
  }

  move() {
    console.log('Person move');
  }

  start() {
    console.log('start');
  }
}

class Son extends Person {
  constructor(name: string) {
    super(name);
  }

  move() {
    console.log('son move');
    super.move();
  }
}

const son = new Son('son');
son.move();
son.start();
